package com.util.cdb.bean.entity;

import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * (SsYhml)实体类
 *
 * @author
 * @since 2022-01-02 20:42:55
 */
@Entity
@Table(name = "ss_yhml")
@Getter
@Setter
@ToString
@RequiredArgsConstructor
public class Yhml implements Serializable {
    private static final long serialVersionUID = 423672972895774509L;
    /**
     * 主键
     */
    @Id
    private String id;
    @Column(name = "USER_ID", length = 32)
    private String userId;
    /**
     * 目录名称
     */
    @Column(name = "MLMC", length = 50)
    private String mlmc;
    /**
     * 节点类型（1-目录节点 2-叶子节点）
     */
    @Column(name = "JDLX", length = 1)
    private String jdlx;
    /**
     * 父节点ID（为0则是根节点）
     */
    @Column(name = "FJD_ID", length = 32)
    private String fjdId;
    /**
     * 叶子节点对应数据源ID
     */
    @Column(name = "DB_ID", length = 32)
    private String dbId;
}

